<script setup>
import Router from "@/router/index.js";

const toInsertPage=()=>{
  Router.push('/insert')
}
const toUpdatePage=()=>{
  Router.push('/update')
}
</script>

<template>
<div class="d">
  <button @click="toInsertPage">新增</button>
  <button @click="toUpdatePage">更新</button>
</div>
</template>

<style scoped>
.d{
  width: 100%;
  display: flex;
  margin-top:20%;
  height: 5%;
  justify-content: space-around;
}
</style>